﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_FIN_RECEIVED_DETAIL_ITEM
// * CreateDate    : 2012-10-19 3:23:03
// * Creater       : CodeSmith
// * LastChangeDate: 2012-10-19 3:23:03
// * LastChanger   : 2012-10-19 3:23:03
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class FinReceivedDetailItemTable : TableInfo
    {
        public const string C_TableName = "FIN_RECEIVED_DETAIL_ITEM";

        public const string C_ID = "ID";
        public const string C_RECEIVED_DETAIL_ID = "RECEIVED_DETAIL_ID";
        public const string C_DELIVERY_ORDER_CODE = "DELIVERY_ORDER_CODE";
        public const string C_PRODUCT_CODE = "PRODUCT_CODE";
        public const string C_PRODUCT_SPEC_IN = "PRODUCT_SPEC_IN";
        public const string C_PRODUCT_NAME = "PRODUCT_NAME";
        public const string C_DELIVERY_DATE = "DELIVERY_DATE";
        public const string C_ORDER_PERSON_NAME = "ORDER_PERSON_NAME";
        public const string C_ITEM_AMOUNT = "ITEM_AMOUNT";
        public const string C_BILLING_AMOUNT = "BILLING_AMOUNT";
        public const string C_REMARK = "REMARK";

        public FinReceivedDetailItemTable()
        {
            _tableName = "FIN_RECEIVED_DETAIL_ITEM";
        }

        protected static FinReceivedDetailItemTable _current;
        public static FinReceivedDetailItemTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new FinReceivedDetailItemTable();

            _current.Add(C_ID, new ColumnInfo(C_ID, "Id", true, typeof(string)));
            _current.Add(C_RECEIVED_DETAIL_ID, new ColumnInfo(C_RECEIVED_DETAIL_ID, "ReceivedDetailId", false, typeof(string)));
            _current.Add(C_DELIVERY_ORDER_CODE, new ColumnInfo(C_DELIVERY_ORDER_CODE, "DeliveryOrderCode", false, typeof(string)));
            _current.Add(C_PRODUCT_CODE, new ColumnInfo(C_PRODUCT_CODE, "ProductCode", false, typeof(string)));
            _current.Add(C_PRODUCT_SPEC_IN, new ColumnInfo(C_PRODUCT_SPEC_IN, "ProductSpecIn", false, typeof(string)));
            _current.Add(C_PRODUCT_NAME, new ColumnInfo(C_PRODUCT_NAME, "ProductName", false, typeof(string)));
            _current.Add(C_DELIVERY_DATE, new ColumnInfo(C_DELIVERY_DATE, "DeliveryDate", false, typeof(DateTime)));
            _current.Add(C_ORDER_PERSON_NAME, new ColumnInfo(C_ORDER_PERSON_NAME, "OrderPersonName", false, typeof(string)));
            _current.Add(C_ITEM_AMOUNT, new ColumnInfo(C_ITEM_AMOUNT, "ItemAmount", false, typeof(decimal)));
            _current.Add(C_BILLING_AMOUNT, new ColumnInfo(C_BILLING_AMOUNT, "BillingAmount", false, typeof(decimal)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK, "Remark", false, typeof(string)));

        }

        public ColumnInfo ID
        {
            get { return this[C_ID]; }
        }

        public ColumnInfo RECEIVED_DETAIL_ID
        {
            get { return this[C_RECEIVED_DETAIL_ID]; }
        }

        public ColumnInfo DELIVERY_ORDER_CODE
        {
            get { return this[C_DELIVERY_ORDER_CODE]; }
        }

        public ColumnInfo PRODUCT_CODE
        {
            get { return this[C_PRODUCT_CODE]; }
        }

        public ColumnInfo PRODUCT_SPEC_IN
        {
            get { return this[C_PRODUCT_SPEC_IN]; }
        }

        public ColumnInfo PRODUCT_NAME
        {
            get { return this[C_PRODUCT_NAME]; }
        }

        public ColumnInfo DELIVERY_DATE
        {
            get { return this[C_DELIVERY_DATE]; }
        }

        public ColumnInfo ORDER_PERSON_NAME
        {
            get { return this[C_ORDER_PERSON_NAME]; }
        }

        public ColumnInfo ITEM_AMOUNT
        {
            get { return this[C_ITEM_AMOUNT]; }
        }

        public ColumnInfo BILLING_AMOUNT
        {
            get { return this[C_BILLING_AMOUNT]; }
        }

        public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }



    }
}

